<?php session_start(); ?>
<?php include "libfunc.php";?>
<?php if (!empty($_SESSION['admUser']) && !empty($_SESSION['admPass'])) { ?>

<html>
 <head>
  <title>.: Admin Room Clothingcorp :.</title>
 </head>
 <body class="fix">
  <div id="wrapper">
 
	<div class="subTitleHeader">
	 - Website Administrator Control Panel -

   </div>
 
	<div id="rightColumn">
	 <div class="content">
	<?php 
	  $id = $_GET[id]; // ambil id
		  
	  //-------- koneksi ke database
	  $link = koneksi_db();
	  $sql  = "SELECT * FROM dtmember WHERE id_member = '$id'";
	  $res  = mysql_query($sql,$link);
	  $data = mysql_fetch_array($res);
	  //--------- end of koneksi database
    ?>   
      <!-- View Data member //-->
      <fieldset>
       <legend>Data Member :: <?php echo $data['nama']; ?></legend>
        <table border="0" class="tableDetail">
		 <tr>
		  <td><u>ID Member</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['id_member']; ?></strong></td>
         </tr>
         <tr>
		  <td><u>Alamat</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['alamat']; ?></strong></td>
         </tr>
         <tr> 
          <td><u>Email</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['email']; ?></strong></td>
         </tr>
         <tr>
          <td><u>Kota</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['kota']; ?></strong></td>
         </tr>
         <tr>
		  <td><u>Telpon</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['tlp']; ?></strong></td>
         </tr>
         <tr>
		  <td><u>Katasandi</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['katasandi']; ?></strong></td>
         </tr>
		 <tr>
		  <td><u>AKSI</u></td>
          <td align="right">:</td>
          <td>
		   <a href="form_edit_member.php?id=<?php echo $data[id_member]; ?>"><img src="img/page_edit.png" title="Edit" border="0"></a>
		  </td>
		 </tr>
		</table>
	  </fieldset>
   
      
     
	  <div id="keterangan">
       <fieldset>
        <legend>Keterangan</legend>
         Menu View Data Member <b><?php echo $data['nama']; ?></b>. Anda dapat mengedit data tersebut.
       </fieldset>
       </div>
	 </div>
	</div>
   </div><
  </div>
 </body>
</html>
<?php
}else{
  echo "<script language='javascript'>alert('Silakan Sign In Terlebih Dahulu')</script>";
  echo "<script language='javascript'>window.location = '../admin/'</script>";
}